import request from '@/utils/request'

// 查询设备管理员列表
export function listDeviceManage(query) {
  return request({
    url: '/business/deviceManage/list',
    method: 'get',
    params: query
  })
}

// 查询设备管理员详细
export function getDeviceManage(id) {
  return request({
    url: '/business/deviceManage/' + id,
    method: 'get'
  })
}

// 新增设备管理员
export function addDeviceManage(data) {
  return request({
    url: '/business/deviceManage',
    method: 'post',
    data: data
  })
}

// 修改设备管理员
export function updateDeviceManage(data) {
  return request({
    url: '/business/deviceManage',
    method: 'put',
    data: data
  })
}

// 删除设备管理员
export function delDeviceManage(id) {
  return request({
    url: '/business/deviceManage/' + id,
    method: 'delete'
  })
}
